package com.aliyun.messagemgt.common.errorcode;

/**
 * @Author: Xiaohang Lv
 * @Date: 2019/5/23 21:55
 */
public enum MediaErrorCode implements IErrorCode {
    //错误码
    INVALID_TYPE_ERROR(5001, "无法识别该文件格式"),

    COMMON_ERROR(5002, "该文件大小超出微信限制");

    private int code;
    private String message;

    MediaErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String errName() {
        return message;
    }

    @Override
    public int errCode() {
        return code;
    }

    @Override
    public String errMsgTemplate() {
        return null;
    }
}